import request from '@/utils/request'

// 查询月卡缴费列表
export function listPayment(query) {
  return request({
    url: '/system/payment1/list',
    method: 'get',
    params: query
  })
}

// 查询月卡缴费详细
export function getPayment(mpId) {
  return request({
    url: '/system/payment1/' + mpId,
    method: 'get'
  })
}

// 新增月卡缴费
export function addPayment(data) {
  return request({
    url: '/system/payment1',
    method: 'post',
    data: data
  })
}

// 修改月卡缴费
export function updatePayment(data) {
  return request({
    url: '/system/payment1',
    method: 'put',
    data: data
  })
}

// 删除月卡缴费
export function delPayment(mpId) {
  return request({
    url: '/system/payment1/' + mpId,
    method: 'delete'
  })
}
